import http from '@/utils/http'
// H5微信配置
export const fetchH5WechatConfig = (data: { url: string }) =>
  http.post<any>('/api/system/getJsSdkConfig', data)

// H5微信授权
export const fetchH5WechatLogin = (data: { code: string }) =>
  http.post<{ userInfo: any; routePath: string }>('/api/user/mpOauthCallback', data)

// 分享埋点
export const fetchRecordShare = <D>(data: D) => http.post<any>('/api/persons/gradeShare', data)

// 获取授权链接
export const fetchAuthLink = <D>(data?: D) => http.get<any>('/api/Login/getAuthUrl', data)
